//
//  MineTableViewController.swift
//  MicroBlog
//
//  Created by Jokin on 2017/3/26.
//  Copyright © 2017年 jokin. All rights reserved.
//

import UIKit

class MineTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogIn {
            
            creatNav()
        }else {
          visitorView?.changeVisitor(imageName: "visitordiscover_image_profile", text: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
    
    }

 
    private func creatNav() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", imageName: nil, target: self, action: #selector(pushAction))
        
        
    }

    func pushAction() {
        self.navigationController?.pushViewController(UIViewController(), animated: true)
    }
    
    
}
